﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using OperaHouse.Domain.Users;
using OperaHouse.Domain.News;
using OperaHouse.Domain.Contacts;

namespace OperaHouse.DAL
{
    public class AdventureWorksEntities : DbContext
    {
        public AdventureWorksEntities() : base("AdventureWorksEntities") { }
        public DbSet<User> Users { get; set; }
        public DbSet<NewsItem> NewsItems { get; set; }
        public DbSet<Contact> Contacts { get; set; }

        public void Commit()
        {
            base.SaveChanges();
        }
    }
}
